USE [SONALIKA_BGK_UPDATED]
GO

/****** Object:  Table [dbo].[VILLAGES]    Script Date: 13-May-14 1:05:11 AM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[VILLAGES](
	[VILLAGE_ID] [int] IDENTITY(1,1) NOT NULL,
	[VILLAGE_NAME] [varchar](50) NOT NULL,
	[TALUK_ID] [int] NOT NULL,
 CONSTRAINT [PK_VILLAGES] PRIMARY KEY CLUSTERED 
(
	[VILLAGE_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[VILLAGES]  WITH CHECK ADD  CONSTRAINT [FK_VILLAGES_TALUKS] FOREIGN KEY([TALUK_ID])
REFERENCES [dbo].[TALUKS] ([TALUK_ID])
GO

ALTER TABLE [dbo].[VILLAGES] CHECK CONSTRAINT [FK_VILLAGES_TALUKS]
GO


